package com.atguigu.service;

import com.atguigu.pojo.Page;
import com.atguigu.pojo.Server;
import com.atguigu.pojo.Service;

import java.util.List;

//在service中建立serviceservice,定义serviceserviceImpl需要实现的方法
public interface ServiceService {
    public void addService(Service service);
    public void updateService(Service service);
    public void deleteServiceById(String id);
    public Service queryServiceById(String id);
    public List<Service> queryServicesByServerId(String serverId);
    public List<Service> queryServicesByName(String serviceName);
    public List<Server> queryServersByServiceName(String serviceName);
    public List<Service> queryServicesByServerIdAndServiceName(String serverId,String serviceName);
    public List<Service> queryServices();
    public Page page(Integer pageNo, Integer pageSize);
}
